* {
    margin: 0;
    padding: 0;
}
li {
    list-style: none;
}
a{
    text-decoration: none;
}
body {
    background-color: #f4f4f4;
    font-size: 12px;
}
// 设置滚动条
@mixin scroll($select) {
    #{$select}::-webkit-scrollbar {
        width: 5px;
    }
    #{$select}::-webkit-scrollbar-track {
        background: rgb(179, 177, 177);
        border-radius: 5px;
    }

    #{$select}::-webkit-scrollbar-thumb {
        background: rgb(136, 136, 136);
        border-radius: 5px;
    }

    #{$select}::-webkit-scrollbar-thumb:hover {
        background: rgb(100, 100, 100);
        border-radius: 5px;
    }

    #{$select}::-webkit-scrollbar-thumb:active {
        background: rgb(68, 68, 68);
        border-radius: 5px;
    }
}

// 单行出现省略号
@mixin slh($value) {
    width: $value;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@mixin slhs($value, $num) {
    width: $value;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: $num;
}

// swiper左右按钮的公共样式
@mixin swiperBtn {
    .swiper-button-prev {
        width: 25px;
        height: 35px;
        background: rgba(0, 0, 0, 0.25);
        left: 0px;
        border-radius: 0px 25px 25px 0px;
        color: #fff;

        &::after {
            content: '';
        }
    }

    .swiper-button-next {
        width: 25px;
        height: 35px;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 25px 0px 0px 25px;
        color: #fff;
        right: 0px;

        &::after {
            content: '';
        }
    }

    .swiper-pagination {
        width: auto;
        left: 50px;

        span {
            width: 8px;
            height: 8px;
            margin-right: 4px;
            border: 1px solid rgba(0, 0, 0, .05);
            background: rgba(255, 255, 255, .8);
        }

        .swiper-pagination-bullet-active {
            width: 9px;
            height: 9px;
            background: #fff;
            border: 3px solid rgba(0, 0, 0, .05);
            top: 2px;
        }
    }
}

.jd-container {
    width: 1190px;
    margin: auto;
    height: 100%;
    padding: 0px;
}

a:hover {
    text-decoration: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}
.header1 {
    color: #999;
    height: 30px;
    background-color: #e3e4e5;

    div {
        padding: 0px 7px;
        line-height: 30px;

        i {
            color: red;
            margin-right: 2px;
        }
    }

    ul {
        li {
            cursor: pointer;
            float: left;
            padding: 0px 12px;

            a {
                color: red;
            }

            &:hover {
                color: red;
            }
        }
        .user{
            display: none;
        }
    }

}

.header2 {
    background: #fff;
    border-bottom: 1px solid #ddd;
    height: 140px;

    .logo {
        width: 190px;
        height: 120px;
    }

    .search {
        margin-top: 20px;
        font-size: 12px;
        width: 550px;

        .input-group {
            height: 32px;
            border: 2px solid red;

            .form-control {
                height: 100%;
                border-radius: 0px;
                border: 0px;
                outline: none;

                & {
                    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.25);
                }
            }

            #button-addon4 {
                .btn {
                    padding: 0px;
                    border: 0px;
                    border-radius: 0px;

                    & {
                        background-color: #fff;
                        color: #999;
                        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.25);
                    }
                }

                .btn:nth-child(2) {
                    background-color: red;
                    margin-left: 10px;
                    width: 58px;
                    color: #fff;
                }
            }
        }

        #hotwords {
            overflow: hidden;
            width: 550px;
            height: 20px;
            line-height: 20px;

            a {
                float: left;
                margin-right: 10px;
                white-space: nowrap;
                color: #999;
            }

            .red {
                color: red;
            }
        }
    }

    // 购物车
    #settleup {
        margin-top: 20px;
        cursor: pointer;
        width: 130px;
        height: 34px;
        background-color: #fff;
        text-align: center;
        line-height: 34px;
        border: 1px solid #eee;
        margin-left: 20px;
        position: relative;
        color: red;

        a {
            color: red;
        }

        .iconfont {
            font-size: 16px;
        }

        .ci-count {
            position: absolute;
            top: 1px;
            left: 33px;
            right: auto;
            display: inline-block;
            padding: 1px 3px;
            font-size: 12px;
            line-height: 12px;
            color: #fff;
            background-color: #e1251b;
            border-radius: 7px;
            min-width: 12px;
            text-align: center;
        }
    }

    #treasure {
        background-image: url(https://img13.360buyimg.com/babel/jfs/t20260905/126202/1/37003/18242/64f847b1F06cedd6f/b42abd3d3960bc30.png.avif);
        width: 190px;
        height: 120px;
        background-size: cover;
    }
}